package unplayer.videoplayer;

import codeanticode.gsvideo.GSMovie;
import processing.core.PApplet;
import processing.core.PConstants;
import unplayer.videoplayer.VideoPlayer;

public class Gui extends PApplet {

	private static final long serialVersionUID = 1L;

		public void setup() {
			
			size(1000, 800, PConstants.P2D);
			background(255);
			player = new VideoPlayer(this,"video.avi",false);
			player.videoCharged();
		}
		
		public void movieEvent(GSMovie myMovie) {
			myMovie.read();
		}

		
		public void draw() {

			player.video(100,100,320,260);
		}
		
		
		privateVideoPlayerr player;
}
